<?
ob_start();
header('Content-Type:application/json; charset=utf8');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pramga: no-cache");
header('Access-Control-Allow-Origin: *');
ini_set("display_errors", 0);

// error_reporting(E_ALL ^ E_NOTICE);
// error_reporting(E_ALL ^ E_DEPRECATED);

// //////////////////////链接数据库//////////////////////
include_once ('conn_db.php');
include_once ('db_class.php');
mysql_connect(HOST,NAME,PASS) or die(mysql_error());
mysql_select_db(DBNAME);
mysql_query('SET NAMES '.CODEPAGE);
$mydb = new mydb();

include_once 'function.php';
?>